package com.jiawa.train.business.mapper.cust;

import cn.hutool.core.date.DateTime;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

public interface SkTokenMapperCust {
  int decreaseSeat(@Param("id") Long id,
                   @Param("seatTypeCode") String seatTypeCode,
                   @Param("updateTime") Date updateTime,
                   @Param("reduceCount") int reduceCount);

  int updateCount(@Param("id") Long id,
                  @Param("seatTypeCode") String seatTypeCode,
                  @Param("cacheCount") int cacheCount,
                  @Param("updateTime") DateTime updateTime);
}
